import type { RouteRecordRaw } from "vue-router";

export const constantRoutes: RouteRecordRaw[] = [
    {
        path: "/login",
        redirect: "/login/index",
        children: [
            {
                path: "index",
                name: "login",
                component: () => import("@/views/login/index.vue"),
            },
            {
                path: "register",
                name: "register",
                component: () => import("@/views/login/register.vue"),
            },
            {
                path: "forget",
                name: "forget",
                component: () => import("@/views/login/forget.vue"),
            },
            {
                path: "check",
                name: "check",
                component: () => import("@/views/login/check.vue"),
            },
        ],
    },
    {
        path: "/404",
        name: "404",
        component: () => import("@/views/error/404.vue"),
    },
];
